monster1 = { health: 500 }
monster2 = { health: 500 }

5.times do
  damage = rand(1..100)
  puts "Monster 1 attacks Monster 2 for #{damage} damage!"
  monster1[:health] -= damage
  puts "Monster 1 health is now #{monster1[:health]}"
  damage = rand(1..100)
  puts "Monster 2 attacks Monster 1 for #{damage} damage!"
  monster2[:health] -= damage
  puts "Monster 2 health is now #{monster1[:health]}" 
end

puts "Monster 1 has #{monster1[:health]} health and Monster 2 has #{monster2[:health]} health"
puts "The winner is: #{monster1[:health] > monster2[:health] ? 'Monster 1' : 'Monster 2'}"